(deftemplate senzor(slot denumire)(slot incapere))
(deftemplate aparat(slot denumire)(slot senzor)(slot energie))
(deftemplate do (slot id)(slot persoana)(slot ora (type INTEGER)) (slot minut (type INTEGER))(slot actiune) (slot ap ))


(assert (do (id 1) (persoana Ion)(ora 00) (minut 02) (actiune start)(ap the_light2)))
(assert (do (id 1) (persoana Ion)(ora 00) (minut 10) (actiune stop)(ap the_light2)))
(assert (do (id 3) (persoana Ioana)(ora 01) (minut 31) (actiune start)(ap the_light5)))
(assert (do (id 4) (persoana Ioana)(ora 01) (minut 32) (actiune start)(ap the_light1)))
(assert (do (id 5) (persoana Ioana)(ora 01) (minut 32) (actiune start)(ap refrigerator)))
(assert (do (id 6) (persoana Ioana)(ora 01) (minut 33) (actiune stop)(ap refrigerator)))
(assert (do (id 4) (persoana Ioana)(ora 01) (minut 45) (actiune stop)(ap the_light1)))
(assert (do (id 8) (persoana Ioana)(ora 01) (minut 47) (actiune start)(ap the_light2)))
(assert (do (id 8) (persoana Ioana)(ora 01) (minut 47) (actiune stop)(ap the_light2)))
(assert (do (id 3) (persoana Ioana)(ora 01) (minut 49) (actiune stop)(ap the_light5)))
(assert (do (id 11) (persoana Maria)(ora 07) (minut 01) (actiune start)(ap the_light2)))
(assert (do (id 11) (persoana Maria)(ora 07) (minut 04) (actiune stop)(ap the_light2)))
(assert (do (id 13) (persoana Maria)(ora 07) (minut 06) (actiune start)(ap refrigerator)))
(assert (do (id 14) (persoana Maria)(ora 07) (minut 10) (actiune stop)(ap refrigerator)))
(assert (do (id 15) (persoana Ioana)(ora 07) (minut 15) (actiune start)(ap the_light5)))
(assert (do (id 16) (persoana Vasile)(ora 07) (minut 15) (actiune start)(ap the_light3)))
(assert (do (id 15) (persoana Ioana)(ora 07) (minut 20) (actiune stop)(ap the_light5)))
(assert (do (id 16) (persoana Vasile)(ora 07) (minut 26) (actiune stop)(ap the_light3)))
(assert (do (id 19) (persoana Maria)(ora 07) (minut 55) (actiune start)(ap tv)))
(assert (do (id 19) (persoana Maria)(ora 10) (minut 00) (actiune stop)(ap tv)))
(assert (do (id 21) (persoana Maria)(ora 16) (minut 01) (actiune start)(ap refrigerator)))
(assert (do (id 22) (persoana Maria)(ora 16) (minut 15) (actiune stop)(ap refrigerator)))
(assert (do (id 23) (persoana Vasile)(ora 16) (minut 35) (actiune start)(ap computer)))
(assert (do (id 24) (persoana Vasile)(ora 17) (minut 30) (actiune stop)(ap computer)))
(assert (do (id 25) (persoana Ioana)(ora 16) (minut 45) (actiune start)(ap tv)))
(assert (do (id 25) (persoana Ioana)(ora 17) (minut 30) (actiune stop)(ap tv)))
(assert (do (id 27) (persoana Ion)(ora 18) (minut 30) (actiune start)(ap tv)))
(assert (do (id 27) (persoana Ion)(ora 23) (minut 30) (actiune stop)(ap tv)))
(assert (do (id 29) (persoana Maria)(ora 18) (minut 32) (actiune start)(ap refrigerator)))
(assert (do (id 30) (persoana Maria)(ora 18) (minut 35) (actiune stop)(ap refrigerator)))
(assert (do (id 31) (persoana Maria)(ora 22) (minut 01) (actiune start)(ap the_light2)))
(assert (do (id 31) (persoana Maria)(ora 22) (minut 03) (actiune stop)(ap the_light2)))
(assert (do (id 33) (persoana Maria)(ora 22) (minut 05) (actiune start)(ap the_light5)))
(assert (do (id 34) (persoana Vasile)(ora 22) (minut 32) (actiune start)(ap the_light2)))
(assert (do (id 33) (persoana Maria)(ora 22) (minut 33) (actiune stop)(ap the_light5)))
(assert (do (id 34) (persoana Vasile)(ora 22) (minut 34) (actiune stop)(ap the_light2)))
(assert (do (id 37) (persoana Vasile)(ora 22) (minut 36) (actiune start)(ap the_light5)))
(assert (do (id 37) (persoana Vasile)(ora 22) (minut 44) (actiune stop)(ap the_light5)))
